

import * as SMap from '../SimpleMap.es'


const Icon = SMap.Entity.IconEntity;
const BasicLayer = SMap.Layer.BasicLayer;
const uuid = SMap.Util.uuid;


export class FormLayer extends BasicLayer {
    constructor(map, options = {}) {
        super(uuid(), map, options);
        this.EntityTypeName = 'FormEntity'
    }
    add(options) {
        var Entity = new Icon(options, this);
        Entity.EntityTypeName = 'FormEntity';
        this._Mapping[Entity.id] = Entity;
        this._Entities.add(Entity.Entity);
        return Entity;
    }
}


